//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.until;

import java.math.BigDecimal;
import org.come.Jpanel.FrameMessageChangeJpanel;
import org.come.bean.SummonPetBean;
import org.come.entity.Goodstable;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;

public class ControlGoodsValuesUntil {
	public ControlGoodsValuesUntil() {
	}

	public static void getPetFromItem(Goodstable goodstable) {
		SummonPetBean summonPetBean = new SummonPetBean();
		summonPetBean.setPetid(new BigDecimal(goodstable.getValue()));
		String mes = Agreement.getAgreement().summonpetAgreement(GsonUtil.getGsonUtil().getgson().toJson(summonPetBean));
		SendMessageUntil.toServer(mes);
		FrameMessageChangeJpanel.addtext(6, "恭喜您获得了" + goodstable.getGoodsname() + "召唤兽", (BigDecimal)null, (String)null);
		goodstable.goodxh(1);
	}
}
